/*
 * @Description: 
 * @Author: 马爽
 * @Date: 2021-03-04 20:33:24
 * @LastEditTime: 2021-03-09 16:26:07
 * @LastEditors: 马爽
 */

export interface UserType {
    user_name:string;
    user_pwd:string;
}

interface ItemMeta {
    isShow: boolean;
    view_id: string;
}

interface ImenuItem {
    title: string;
    path: string;
    meta: ItemMeta;
}

interface IMeta {
    icon: any;
    isShow: boolean;
}

export interface ImenuList {
    title: string;
    children: ImenuItem;
    meta: IMeta;
}

//展示用户数据
export interface UserListType {
    user_name: string;
    user_pwd: string;
    user_id: string;
    identity_text: string;
}

//展示身份数据
export interface IdentityListType {
    identity_id: string;
    identity_text: string;
}

export interface ApiAuthorityList {
    api_authority_id: string;
    api_authority_text: string;
    api_authority_url: string;
    api_authority_method: string;
}

//展示身份和api权限关系
export interface Identity_api_authority_relation {
    identity_api_authority_relation_id: string;
    identity_text: string;
    api_authority_text: string;
    api_authority_url: string;
    api_authority_method: string;
}

//获取视图权限数据
export interface View_authority {
    view_authority_id: string;
    view_authority_text: string;
    view_id: string;
}

export interface Identity_view_authority_relation {
    identity_view_authority_relation_id: string;
    identity_text: string;
    view_authority_text: string;
    view_id: string;
}

//添加用户
export interface AddUserType {
    user_name: string;
    user_pwd: string;
    identity_id: string;
}

//添加身份
export interface AddIdentityType {
    identity_text: string;
}

//更新用户信息(用户名，用户密码，用户身份)
export interface UpdateUsers {
    user_id: string;
    user_name: string;
    user_pwd: string;
    identity_id: string;
    avatar: string;
}

//添加api接口权限
export interface AddAuthorityApi {
    api_authority_text: string;
    api_authority_url: string;
    api_authority_method: string;
}

//添加视图权限
export interface AuthorityView {
    view_authority_text: string;
    view_id: string;
}

//给身份设定api接口权限
export interface SetIdentityApi {
    identity_id: string;
    api_authority_id: string;
}

//给身份设定视图权限
export interface SetIdentityView {
    identity_id: string;
    view_authority_id: string;
}
